<?php 
/* SVN FILE: $Id$ */
/* GoodsActivity Test cases generated on: 2009-05-30 23:05:04 : 1243739464*/
App::import('Model', 'GoodsActivity');

class GoodsActivityTestCase extends CakeTestCase {
	var $GoodsActivity = null;
	var $fixtures = array('app.goods_activity', 'app.good');

	function startTest() {
		$this->GoodsActivity =& ClassRegistry::init('GoodsActivity');
	}

	function testGoodsActivityInstance() {
		$this->assertTrue(is_a($this->GoodsActivity, 'GoodsActivity'));
	}

	function testGoodsActivityFind() {
		$this->GoodsActivity->recursive = -1;
		$results = $this->GoodsActivity->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('GoodsActivity' => array(
			'id'  => 1,
			'act_name'  => 'Lorem ipsum dolor sit amet',
			'act_desc'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'start_time'  => '2009-05-30 23:11:01',
			'end_time'  => '2009-05-30 23:11:01',
			'act_type'  => 1,
			'is_finished'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'ext_info'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'good_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>